<template>
  <div>
    <div class="head">教职工信息详情</div>
    <div class="background">
      <div class="exam_head">
        <div>
          <span >姓名：{{ row.teacherName }}</span>
        </div>
        <div>
          <span>所属学院：{{ row.dwmc }}</span>
        </div>
        <div>
          <span>状态：{{ row.dqzt}}</span>
        </div>
        <div>
          <span>职称：{{ row.jszc}}</span>
        </div>
        <div>
          <span>职位：{{ row.jzglbmc }}</span>
        </div>
      </div>
      <!-- <div class="exam_explain">
        <span>教授课程</span>
      </div> -->
      <div class="exam_address">
        <div
          class="address_list"
          v-for="(item, i) in tabledata"
          :key="i"
        >
          <div style="margin-top: 10px;margin-left:5px">

            <span>课程编码：{{ item.courseCode }}</span>
          </div>
          <div style="margin-top: 10px;margin-left:5px">
            <span>课程名称：{{ item.courseName }}</span>
          </div>

        </div>
      </div>
    </div>
  </div>
</template>

<script>
// import { listExam, addExam, getExam, delExame } from "@/api/exam/set";
export default {
  name: "teacherInfoShow",
  //接收
  props: ["row"],
  data() {
    return {
      tabledata: [],
    };
  },

  mounted() {
    this.getDetail();
  },

  methods: {
    getDetail() {
      this.tabledata=this.row.courseList;
      // getExam(this.row.id).then((response) => {
      //   this.tabledata = response.data;
      // });
    },
  },
};
</script>

<style lang="scss" scoped>
.head {
  padding-bottom: 8px;
  margin-bottom: 30px;
  border-bottom: 1px solid #66cccc;
  font-size: 25px;
  font-family: 1000;
  color: #0099ff;
  // color:#336699;
  font-family: cursive;
  text-shadow: 6px 3px 3px #999999;
}
.background {
  background-color: #f2f6fc;
}
.exam_head {
  background-color: #99cccc;
  display: flex;
  justify-content: space-around; //均匀分布
  flex-wrap: wrap; //自动换行
  font-size: 16px;
  margin: 0;
  padding: 8px 8px;
  color: #ffffff;
}
.exam_name {
  text-align: left;
}
.exam_explain {
  background-color: #ffcc99;
  margin: 30px 45px 20px 45px;
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 16px;
}
.exam_address {
  display: flex;
  justify-content: space-around; //均匀分布
  // justify-content: space-between; //均匀分布
  flex-wrap: wrap; //自动换行
  margin: 20px 20px;
}
.address_list {
  display: flex;
  flex-direction: column;
  width: 30%;
  background-color: #ffcccc;
  border-radius: 10px;
  box-shadow: 0px 0px 10px;
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.address_list  .title {
  display: block;
  width: 100px;
}
</style>
